﻿
using Xacml.Core;
using System;
using System.Xml;

namespace Xacml.Core.Context
{
  public class AttributeValueElement : AttributeValueElementReadWrite
  {
    public override string Contents
    {
      set
      {
        throw new NotSupportedException();
      }
    }

    public override string Value
    {
      set
      {
        throw new NotSupportedException();
      }
    }

    public override string DataTypeValue
    {
      set
      {
        throw new NotSupportedException();
      }
    }

    public override bool IsReadOnly
    {
      get
      {
        return true;
      }
    }

    public AttributeValueElement(XmlReader reader, XacmlVersion schemaVersion)
      : base(reader, schemaVersion)
    {
    }

    public AttributeValueElement(string value, XacmlVersion schemaVersion)
      : base(value, schemaVersion)
    {
    }

    public AttributeValueElement(AttributeValueElement attributeValueElement)
      : base((AttributeValueElementReadWrite) attributeValueElement)
    {
    }
  }
}
